//
//  BrowserViewController.h
//  Browser
//
//  Created by Scott A. Guyer on 9/8/08.
//  Copyright __MyCompanyName__ 2008. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "EditPilotViewController.h"

@interface BrowserViewController : UIViewController <UIWebViewDelegate, UIAlertViewDelegate> {
	
	IBOutlet UIWebView*        webView;
	IBOutlet UIToolbar*        toolbar;
	
	IBOutlet UIView*                     statusView;
	IBOutlet UIActivityIndicatorView*    activityView;
	IBOutlet UILabel*                    statusLabel;
	IBOutlet 	UIBarButtonItem*         reloadButton;
	
	UIBarButtonItem*  findButton;
	UIBarButtonItem*  statusButton;

	id <EVELoginContainer>     delegate;
	
	NSMutableData*             receivedData;
	NSURLResponse*             response;
	
	NSString* apiKey;
	NSString* userId;
	
	BOOL      loggedIn;
}

@property (nonatomic,retain) id<EVELoginContainer> delegate;
@property (nonatomic,retain) UIToolbar*           toolbar;
@property (nonatomic,retain) UIWebView*           webView;
@property (nonatomic,retain) UILabel*             statusLabel;
@property (nonatomic,retain) UIActivityIndicatorView* activityView;
@property (nonatomic,retain) UIView*                  statusView;
@property (nonatomic,retain) UIBarButtonItem*         reloadButton;

- (IBAction) reloadAction:(id) sender;
- (IBAction) findAction:(id) sender;


@end

